#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<stdio.h>
int arr[8] = { 0 };
int* findDisappearedNumbers(int* nums, int numsSize) {
    int i = 0;
    int j = 0;
    int z = 0;
    for (i = 1; i <= numsSize; i++)
    {
        for (j = 0; j < numsSize; j++)
        {
            if (nums[j] == i)
            {
                break;
            }
        }
        if (j == numsSize)
        {
            arr[z] = i;
            z++;
        }
    }

    return arr;
}
int main()
{
    int nums[8] = { 4,3,2,7,8,2,3,1 };
    findDisappearedNumbers(nums, 8);
    for (int i = 0; i < 8; i++)
    {
        printf("%d ", arr[i]);
    }
	return 0;
}